home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 119
/
MOBICLIC 119.ISO
/
pc
/
DATA
/
DCV119
/
DCV119_00
/
DCV119_00.swf
/
scripts
/
frame_185
/
DoAction.as
Wrap
Text File
|
2009-11-16
|
4KB
|
137 lines
stop();
dureeDiapo = 4000;
BT_DIAPO._visible = false;
texte_LMXX.text = "";
showDiapo = function(No, L_ordre)
{
trace("index de photo diapo = " + String(No + 1));
var _loc3_ = gimme2digits(Math.ceil(L_ordre[No] / 5));
var _loc1_ = L_ordre[No] - Math.floor(L_ordre[No] / 5) * 5;
if(_loc1_ == 0)
{
_loc1_ = 5;
}
var _loc4_ = gimme2digits(_loc1_);
trace("suffixe1 " + _loc3_);
trace("suffixe2 " + _loc4_);
DIAPORAMA.gotoAndStop("PH_" + _loc3_ + "_" + _loc4_);
texte_LMXX.text = String(L_LM_animaux[L_ordre[No] - 1]);
};
pauseAndShow = function()
{
showDiapo(NoDiapo2show,L_ordreFotos);
if(NoDiapo2show < 14)
{
NoDiapo2show++;
}
else
{
clearInterval(ProcessusDiapo);
BT_DIAPO._visible = true;
}
};
lancerdiaporama = function()
{
LocalLastCatched = 0;
var _loc1_ = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var _loc2_ = [];
L_ordreFotos = [];
var _loc0_ = null;
if((_loc0_ = NoZoneSelected) !== 0)
{
var _loc3_ = NoPhoto2Show - (NoZoneSelected - 1) * 5;
_loc2_.push(_loc3_);
_loc1_.splice(_loc3_ - 1,1);
L_ordreFotos = _loc2_.concat(randomiseList(_loc1_));
}
else
{
L_ordreFotos = randomiseList(_loc1_);
}
trace("L_ordreFotos = " + L_ordreFotos);
showDiapo(0,L_ordreFotos);
NoDiapo2show = 1;
var _loc4_ = setInterval(pauseAndShow,dureeDiapo);
trace("ProcessusDiapo = " + _loc4_);
};
trace("LocalLastCatched en entrée de label diapo = " + LocalLastCatched);
if(LocalLastCatched == 0)
{
DIAPORAMA.gotoAndStop("PH_" + gimme2digits(NoZoneSelected) + "_" + gimme2digits(NoPhoto2Show));
var indexLM = NoPhoto2Show + (NoZoneSelected - 1) * 5;
trace("indexLM = " + indexLM);
texte_LMXX.text = String(L_LM_animaux[indexLM - 1]);
indexLM = null;
}
else
{
trace("lancement diaporama");
LocalLastCatched = 0;
var L = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var Ltampon = [];
L_ordreFotos = [];
var _loc0_ = null;
if((_loc0_ = NoZoneSelected) !== 0)
{
var Noreel_foto = NoPhoto2Show + (NoZoneSelected - 1) * 5;
Ltampon.push(Noreel_foto);
L.splice(Noreel_foto - 1,1);
L_ordreFotos = Ltampon.concat(randomiseList(L));
}
else
{
L_ordreFotos = randomiseList(L);
}
trace("L_ordreFotos = " + L_ordreFotos);
showDiapo(0,L_ordreFotos);
NoDiapo2show = 1;
trace("dureeDiapo = " + dureeDiapo);
var ProcessusDiapo = setInterval(pauseAndShow,dureeDiapo);
trace("ProcessusDiapo = " + ProcessusDiapo);
}
BT_FERMER.onRollOver = function()
{
this.useHandCursor = true;
this.gotoAndStop("E2");
bruit({nomBruit:"FERMER"});
};
BT_FERMER.onPress = function()
{
this.gotoAndStop("E1");
killbruit({nomBruit:"FERMER"});
NoPhoto2Show = 0;
LocalLastCatched = 0;
showMedaillons();
clearInterval(ProcessusDiapo);
_root.gotoAndStop(gimme2digits(NoZoneSelected) + "_" + "ATTENTE");
};
BT_FERMER.onRollOut = function()
{
this.gotoAndStop("E1");
killbruit({nomBruit:"FERMER"});
};
BT_DIAPO.onRollOver = function()
{
this.useHandCursor = true;
this.gotoAndStop("E2");
bruit({nomBruit:"DIAPO"});
};
BT_DIAPO.onPress = function()
{
this.gotoAndStop("E1");
this._visible = false;
clearInterval(ProcessusDiapo);
killbruit({nomBruit:"DIAPO"});
clearInterval(ProcessusDiapo);
showDiapo(0,L_ordreFotos);
NoDiapo2show = 1;
trace("dureeDiapo = " + dureeDiapo);
var ProcessusDiapo = setInterval(pauseAndShow,dureeDiapo);
trace("ProcessusDiapo = " + ProcessusDiapo);
};
BT_DIAPO.onRollOut = function()
{
this.gotoAndStop("E1");
killbruit({nomBruit:"DIAPO"});
};